package com.syh.core.eventBus;


import cn.redscarf.commons.util.other.ExtStringUtils;

import java.io.Serializable;

public abstract class Event<T> implements Serializable {


  protected String eventName = null;


  public String getEventName() {
    return ExtStringUtils.isEmpty(eventName) ? this.getClass().getName() : eventName;
  }

  public Event<T> setEventName(String eventName) {
    this.eventName = eventName;
    return this;
  }
}

